#include "LocalEntity.h"
#include "Templates/NewObject.h"

void LocalEntity::ReleaseResource()
{
	DeleteObject<LocalEntity>(this);
}

void LocalEntity::OnTick(float deltaTime)
{
	if (GetName() == "Left")
	{
		mTransform.SetLocalPosition(mGameScene->GetCamera().GetScreenPos(0.25f, 0.5f, 10.f));
	}
	else
	{
		mTransform.SetLocalPosition(mGameScene->GetCamera().GetScreenPos(0.75f, 0.5f, 10.f));
	}
	mTransform.UpdateMatrices();
}
